<div class="portlet">
    <div class="portlet-actions">
        <button class="btn blue btn-sm" ng-click="grid.add()"><i class="fa fa-plus"></i> 新增</button>
    </div>
    <form class="portlet-search-body" name="queryForm">
        <div class="search-item">
            <button class="btn btn-icon-only default"><i class="fa fa-chevron-right"></i></button>
            <button class="btn btn-sm query" ng-click="grid.query();"><i class="fa fa-search"></i> 查询</button>
            <button class="btn btn-sm reset" ng-click="grid.reset();"><i class="fa fa-eraser"></i> 重置</button>
        </div>
    </form>
    <div class="portlet-body">
        <table ed-grid="grid"  class="table table-striped table-bordered table-advance table-hover"
               data-options="url: 'assetTransfer/query.do', modelText: 'xx列表', form: 'queryForm', modal: 'modal'">
            <thead>
            <tr>
                <th data-options="field: '_index'"></th>
                <th data-options="field: 'userId'">使用人编号</th>
                <th data-options="field: 'userName'">使用人</th>
                <th data-options="field: 'deptId'">使用部门编号</th>
                <th data-options="field: 'deptName'">使用部门</th>
                <th data-options="field: 'useDate'">开始使用时间</th>
                <th data-options="field: 'location'">使用位置</th>
                <th>操作</th>
            </tr>
            </thead>
        </table>
    </div>
</div>

<div ed-modal="modal" data-options="title: 'xxxx', static: true, width: 720, defaultButton:false,onHidden:'reset'">
    <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate name="validateForm">
        <div class="form-body">
        	<div class="form-group">
				<label class="col-md-2 control-label">使用人编号</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="userId" ng-model="assetTransfer.userId" required>
            	</div>
				<label class="col-md-2 control-label">使用人</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="userName" ng-model="assetTransfer.userName" required>
            	</div>
            </div>
        	<div class="form-group">
				<label class="col-md-2 control-label">使用部门编号</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="deptId" ng-model="assetTransfer.deptId" required>
            	</div>
				<label class="col-md-2 control-label">使用部门</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="deptName" ng-model="assetTransfer.deptName" required>
            	</div>
            </div>
        	<div class="form-group">
				<label class="col-md-2 control-label">开始使用时间</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="useDate" ng-model="assetTransfer.useDate" required>
            	</div>
				<label class="col-md-2 control-label">使用位置</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="location" ng-model="assetTransfer.location" required>
            	</div>
            </div>
        </div>
        <div class="form-actions">
            <button type="button" class="btn default" ng-click="grid.cancel();">
                <i class="fa fa-times"></i> 取消
            </button>
            <button type="button" class="btn blue" ng-click="grid.save();">
                <i class="fa fa-times"></i> 确定
            </button>
        </div>
    </form>
</div>
